package upload

import (
	"io"
	"mime/multipart"
)

//FileLoad 文件相关
type FileLoad interface {
	//UploadHttp 上传
	UploadHttp(file *multipart.FileHeader, fileName string) (string,error)
	UploadCommon( fileName,filePath string) (string,error)
	UploadFile(reader io.Reader, fileName string) (string,error)
	//Download 下载
	Download(path string) ([]byte, error)
	//CreatePath 创建文件夹
	CreatePath(path string) error
}